package question2.test2;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;

public class CalendarDemo2 {
    public static void main(String[] args) throws ParseException {
        Calendar calendar = Calendar.getInstance();
        calendar.set(1949,9,1);
        int week1=calendar.get(Calendar.DAY_OF_WEEK)-1;
        //int week2=calendar.get(Calendar.WEEK_OF_MONTH)-1;
        System.out.println(week1);
    }
}
